﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jobs.aspx.cs" Inherits="HY.WEB.SA.jobs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .redbutton button
        {
            color: #FF0000;
        }
    </style>
</head>
<body>
  <form id="form1" runat="server">
    <div >    
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
        <ext:HiddenField ID="hidstype" runat="server"></ext:HiddenField>

     <ext:HiddenField ID="hidsid" runat="server"> </ext:HiddenField>  
    <ext:Panel ID="Panel1" runat="server" Height="250px" ShowBorder="True"  
        Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BoxConfigPadding="0"
        BoxConfigChildMargin="0 0 0 0" ShowHeader="True" Title="招聘职位"  >         
        <Items>     
       
  <ext:SimpleForm ID="SimpleForm1" BodyPadding="5px" Width="300px" EnableBackgroundColor="true"
        Title="查询条件" runat="server">
         <Items>
                
        
            <ext:TextBox runat="server"  Label="岗位名称" ID="txtjob"  >
            </ext:TextBox>
           <ext:DropDownList ID="ddlcompany" runat="server" Label="企业名称"   >  </ext:DropDownList>

          <ext:DropDownList ID="ddlgw" runat="server" Label="岗位分类" CompareType="String"              
                 AutoPostBack="true" OnSelectedIndexChanged="ddlgw_SelectedIndexChanged"> 
                    </ext:DropDownList>

                       <ext:DropDownList ID="ddlgwsub" runat="server" Label="子类型">
                    </ext:DropDownList>

                     <ext:DropDownList ID="ddlSheng" Label="省份"  CompareType="String"
                CompareValue="-1" CompareOperator="NotEqual" CompareMessage="请选择省份！" runat="server"
                AutoPostBack="true" OnSelectedIndexChanged="ddlSheng_SelectedIndexChanged">
            </ext:DropDownList>
            <ext:DropDownList ID="ddlShi" Label="地区市"  CompareType="String"
                CompareValue="-1" CompareOperator="NotEqual" CompareMessage="请选择地区市！" runat="server" >
            </ext:DropDownList>
                       
                       <ext:DropDownList ID="ddlzone" runat="server" Label="区域镇区">
                    </ext:DropDownList>

            <ext:DropDownList ID="ddledu" runat="server" Label="学历">
                    </ext:DropDownList>

                     <ext:DropDownList ID="ddlsex" runat="server" Label="性别">
                     <ext:ListItem Text=" " Value=" " Selected="true" />
                     <ext:ListItem Text="男" Value="男" />
                       <ext:ListItem Text="女" Value="女" />
                    </ext:DropDownList>
           <ext:Button ID="btsearch" runat="server" Text="查询" OnClick="btsearch_Click"> </ext:Button>

            </Items>
    </ext:SimpleForm>

   <ext:Grid ID="Grid1" Title="数据列表"   BodyPadding="0px"   PageSize="15" ShowBorder="true" ShowHeader="true" Width="810px" AllowPaging="true"
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid"  AllowSorting="true" AutoScroll="true"  
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" OnSort="Grid1_Sort" >
         <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnNew" Text="新增数据" Icon="Add" EnablePostBack="false" runat="server">
                    </ext:Button>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:BoundField Width="80px" DataField="jbh" DataFormatString="{0}" SortField="jbh" HeaderText="岗位编号" />
            
             <ext:HyperLinkField  Width="120px" DataToolTipField="title" DataTextField="title"  SortField="title" HeaderText="招聘职位" 
            DataNavigateUrlFields="sid" DataNavigateUrlFormatString="jobs_view.aspx?sid={0}" DataNavigateUrlFieldsEncode="true"  Target="_blank" />
           <ext:BoundField Width="100px" DataField="keys" DataFormatString="{0}" SortField="keys" HeaderText="关键字" />
                  <ext:HyperLinkField Width="200px" DataToolTipField="cname" DataTextField="cname"  SortField="cname" HeaderText="企业" 
            DataNavigateUrlFields="cbh" DataNavigateUrlFormatString="comp_view_job.aspx?cbh={0}" DataNavigateUrlFieldsEncode="true"  Target="_blank"  />
              
                  
                <ext:TemplateField Width="100px"  HeaderText="镇区" >
                <ItemTemplate>
                    <asp:Literal ID="Literal1" runat="server" Text=<%#getzone(Eval("zone").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>
            <ext:BoundField Width="100px" DataField="edu" DataFormatString="{0}" SortField="edu" HeaderText="学历要求" />
            <ext:BoundField Width="100px" DataField="age" DataFormatString="{0}" SortField="age" HeaderText="年龄要求" />
           <ext:BoundField Width="100px" DataField="sex" DataFormatString="{0}" SortField="age" HeaderText="性别要求" />

            <ext:BoundField Width="100px" DataField="stdate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="有效时间" />
             <ext:BoundField Width="100px" DataField="edate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="结束时间" />

        <ext:WindowField ColumnID="myWindowField2" Width="60px" WindowID="Window1" HeaderText="功能"
                Icon="TableEdit" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="sid"
                DataIFrameUrlFormatString="jobs_edit.aspx?sid={0}" DataWindowTitleField="cname"
                DataWindowTitleFormatString="编辑 - {0}" />
          
        </Columns>
    </ext:Grid>

        </Items>
        </ext:Panel>

           <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="509px">
    </ext:Window>
    </div>
    </form>
</body>
</html>
